package com.yumei.trader.gym.page;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;

import com.yumei.trader.gym.R;
import com.yumei.trader.gym.client.BasePage;


public class PagePpAgreement extends BasePage {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.pop_player_agreement);

        registerComponent();
        transparentBar();
    }

    @SuppressLint({"SetTextI18n", "DefaultLocale", "SetJavaScriptEnabled"})
    private void registerComponent() {

        View layoutDialog = this.findViewById(R.id.layout_dialog);
        Animation am1 = android.view.animation.AnimationUtils.loadAnimation(this, R.anim.bottom_in);
        layoutDialog.setAnimation(am1);

        this.findViewById(R.id.web_content_layout).setOnClickListener(v -> onBackAction());

        this.findViewById(R.id.popup_close_layout).setOnClickListener(v -> onBackAction());
    }
}
